<?php echo $this->render('user/head.phtml');?>
<span class="<?php if (1){echo 'green';}else{echo 'red';} ?> big-text">
    <?php //if(isset($this->messages))
    //   foreach( $this->messages as $id=>$msg){ echo $msg.", ";} ?>
    上传成功，<a href="/user/upload-course">继续上传</a>.
</span>
<br/><br/>
<table id='table_courses'>
  <?php if (0){?>
  <tr>
  <?php }?>
    <?php
       $i=0;
       foreach ($this->courses as $course)
       {
	 if ($i%4==0){
	   if ($i>0){?>
  </tr>
	       <?php }?>
  <tr>
     <?php }?>
    <td>
      <!-- <img class='img_course_act' src='/img/edit.gif'/><img class='img_course_act' src='/img/del.png'/></div> -->
      <div class='div_admin_course' name='<?php echo $course->id;?>'>
	<div class='div_user_video_img left'>
	  <div>
	    <input type="hidden" value="<?php echo $course->id;?>" class="course_id"/>
	    <a href="/video/play?cont_id=<?php echo $course->id;?>">
	      <img class='course_img' src="<?php echo THUMBNAILS_PREFIX.$course->thumb;?>"/>
	    </a>
	  </div>
	  <div><a class='a_course_title' href="/video/play?cont_id=<?php echo $course->id;?>"><?php echo $course->title;?></a></div>
	</div>
	<div class='div_operat_course right'>
	  <a href="/user/edit-course?cont_id=<?php echo $course->id;?>"><li class="ui-state-default ui-corner-all li_operat_course edit_course" name="<?php echo $course->id;?>" title="编辑"><span class="ui-icon ui-icon-pencil"></span></li></a>
	  <li class="ui-state-default ui-corner-all li_operat_course delete_course" name="<?php echo $course->id;?>" title="删除"><span class="ui-icon ui-icon-trash"></span></li>
	</div>

	<div class='clear'></div>
      </div>
    </td>
    <?php
	 $i++;
       }
       if ($i%4!=0){?>
  </tr>
    <?php }?>
</table>

<?php echo $this->render('user/foot.phtml');?>
